package cn.hunqing.web.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.hunqing.web.entity.MyCard;
import cn.hunqing.web.entity.WeddingInvitation;

/**
 *
 * @date 2015-08-01 18:13
 */
public interface WeddingInvitationMapper {

	WeddingInvitation get(int invitationId);

	void insert(WeddingInvitation newWeddingInvitation);
	
	void update(WeddingInvitation newWeddingInvitation);
	
	int delete(int invitationId);

	List<MyCard> getMyCards(int userId);

	WeddingInvitation getByInvitationIdAndUserId(@Param("weddingInvitationId")int weddingInvitationId,@Param("userId")int userId);
	
	void updatePayStatus(@Param("invitationId")int invitationId,@Param("payStatus")int payStatus);
}
